const { contextBridge, ipcRenderer } = require('electron');

// 暴露API给渲染进程
contextBridge.exposeInMainWorld('electronAPI', {
  // 获取Python服务端口
  getPythonPort: () => {
    const { remote } = require('electron');
    return remote.getGlobal('pythonPort');
  }
}); 